@echo off

set ToolPath=%CD%

cd %ToolPath%
start /wait Build_Native_Debug32.bat

set AndroidProjectPath=%ToolPath%\..\build\jsb-default\frameworks\runtime-src\proj.android-studio

cd %AndroidProjectPath%
start /wait gradlew.bat assembleDebug
@echo gradlew done
@echo d|xcopy %AndroidProjectPath%\app\build\outputs\apk\debug %ToolPath%\debug /s/e/y

exit